package com.xiaobias.distributed.pan;

import java.util.HashMap;
import java.util.List;


public class LayuiData
        extends HashMap<String, Object> {
    public static LayuiData data(List<Object> data) {
        return data(null, data);
    }

    public static LayuiData data(Integer count, List<Object> data) {
        LayuiData map = new LayuiData();
        map.put("code", Integer.valueOf(0));
        map.put("msg", "");
        map.put("count", Integer.valueOf((count == null) ? ((data != null) ? data.size() : 0) : count.intValue()));
        map.put("data", data);
        return map;
    }
}